package cn.lbwfree.web.repository;

import cn.lbwfree.web.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    public void insert(Integer bookid, Integer readid, String borrowtime, String returntime, Integer adminid, Integer state);
    public List<Borrow> findAllByReaderId(Integer id, Integer index, Integer limit);
    public int count(Integer readerid);
    public List<Borrow> findAllByState(Integer state, Integer index, Integer limit);
    public int countByState(Integer state);
    public void handle(Integer borroeid, Integer state, Integer adminId);
}
